package com.fantsey.test.shortUrl.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author fx
 * @since 2024-12-17
 */
@Builder
@Data
@TableName("t_short_url")
@ApiModel(value = "ShortUrlEntity对象", description = "")
public class ShortUrlEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("基础链接")
    private String baseUrl;

    @ApiModelProperty("原始链接请求路径")
    private String urlSuffix;

    @ApiModelProperty("原始链接全路径")
    private String fullUrl;

    @ApiModelProperty("短链接编号")
    private String shortCode;

    @ApiModelProperty("过期时间")
    private LocalDateTime expireTime;

    @ApiModelProperty("点击次数")
    private Long clickCount;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("创建人")
    private Long createBy;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("更新人")
    private Long updateBy;


}
